package cn.shuangliang.contract.dao;

import cn.shuangliang.contract.model.Product;
import cn.shuangliang.contract.model.ProductExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    long countByExample(ProductExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Product record);

    int insertSelective(Product record);

    List<Product> selectByExample(ProductExample example);

    Product selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    public List<Product> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("pname") String pname, @Param("type") String type);
    public int searchTotal(@Param("pname") String pname, @Param("type") String type);
}